package org.common.utils.net.netty.http.listener.entity;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;
import org.common.utils.net.netty.http.listener.HttpListener;

/**
 * channel开始读取时调用
 * @author zhouzhibing
 * @date 2025/11/24 14:24
 */
public class ChannelReadStartListenerInfo implements ListenerInfo {

    private ChannelHandlerContext ctx;
    private FullHttpRequest request;

    public ChannelReadStartListenerInfo(ChannelHandlerContext ctx, FullHttpRequest request) {
        this.ctx = ctx;
        this.request = request;
    }

    @Override
    public HttpListener.Key getKey() {
        return HttpListener.Key.CHANNEL_READ_START;
    }


    public ChannelHandlerContext getCtx() {
        return ctx;
    }

    public FullHttpRequest getRequest() {
        return request;
    }
}
